package com.dongnam.quanly.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "ChiTietPhieuNhapXuat")
public class ChiTietPhieuNhapXuat extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "SerialNumber")
	private String serialNumber;

	@Id
	@Column(name = "SoPhieuNhapXuat")
	private String phieuNhapXuat;

	@Column(name = "MaVTHH")
	private String maVthh;

	@Column(name = "TenVTHH")
	private String tenVTHH;

	@Column(name = "ProductName")
	private String productName;

	@Column(name = "SoLuong")
	private Integer soLuong;

	@Transient
	private String tinhChatVTHH;

	public ChiTietPhieuNhapXuat(ChiTietPhieuNhapXuat ctpnx) {
		super();
		this.phieuNhapXuat = ctpnx.phieuNhapXuat;
		this.maVthh = ctpnx.maVthh;
		this.serialNumber = ctpnx.serialNumber;
		this.productName = ctpnx.productName;
		this.soLuong = ctpnx.soLuong;
	}

	public ChiTietPhieuNhapXuat() {
		// TODO Auto-generated constructor stub
	}

	public String getTinhChatVTHH() {
		return tinhChatVTHH;
	}

	public void setTinhChatVTHH(String tinhChatVTHH) {
		this.tinhChatVTHH = tinhChatVTHH;
	}

	public String getPhieuNhapXuat() {
		return phieuNhapXuat;
	}

	public void setPhieuNhapXuat(String phieuNhapXuat) {
		this.phieuNhapXuat = phieuNhapXuat;
	}

	public String getMaVthh() {
		return maVthh;
	}

	public void setMaVthh(String maVthh) {
		this.maVthh = maVthh;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getSoLuong() {
		return soLuong;
	}

	public void setSoLuong(Integer soLuong) {
		this.soLuong = soLuong;
	}

	public String getTenVTHH() {
		return tenVTHH;
	}

	public void setTenVTHH(String tenVTHH) {
		this.tenVTHH = tenVTHH;
	}

}
